import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:xvideos/assets_tool/app_colors.dart';
import 'package:xvideos/hj_utils/widget_utils.dart';
import 'package:xvideos/tools_base/widget/common_dialog.dart';

class CloseLockDailog extends StatelessWidget {
  const CloseLockDailog({super.key});

  @override
  Widget build(BuildContext context) {
    return CommonDialog(
        child: Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        Text(
          "关闭锁定码",
          style: TextStyle(
            fontSize: 20.sp,
            color: Colors.white.withOpacity(.9),
            fontWeight: FontWeight.w500,
          ),
        ),
        12.sizeBoxH,
        0.5.line,
        12.sizeBoxH,
        Text(
          '''您确定关闭锁定密码?

开启需重新输入密码''',
          style: TextStyle(
            fontSize: 16.sp,
            color: Colors.white.withOpacity(.55),
            fontWeight: FontWeight.w400,
          ),
        ),
        24.sizeBoxH,
        Row(
          children: [
            InkWell(
              onTap: () => Get.back(),
              child: Container(
                height: 44,
                width: 112,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(3),
                  color: Colors.white.withOpacity(.1),
                ),
                child: Text(
                  '稍后再说',
                  style: TextStyle(
                    fontSize: 14,
                    fontWeight: FontWeight.w500,
                    color: Color(0xff989898),
                  ),
                ),
              ),
            ),
            12.sizeBoxW,
            Expanded(
              child: InkWell(
                onTap: () => Get.back(result: true),
                child: Container(
                  height: 44,
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(3),
                    color: AppColors.actionRed,
                  ),
                  child: Text(
                    '确定关闭',
                    style: TextStyle(
                      fontSize: 14,
                      fontWeight: FontWeight.w500,
                      color: Colors.white.withOpacity(.9),
                    ),
                  ),
                ),
              ),
            ),
          ],
        )
      ],
    ));
  }
}
